Skip to content

[CI/CD] Reduce packaging time during releases#1396

Merged
sean-breen merged 13 commits intomainfrom
reduce-packaging-time
Nov 21, 2025
Merged

[CI/CD] Reduce packaging time during releases#1396
sean-breen merged 13 commits intomainfrom
reduce-packaging-time

Conversation

@sean-breen
Copy link
Contributor

Proposed changes

Reduce time taken to package the Agent binary for each platform.

Previously we would build the agent binary every time we would run nfpm for a new platform. However, we can reduce the packaging time by building one binary per supported architecture, and packaging those. It involves creating a copy of the .nfpm.yaml configuration and replacing the placeholder strings with the appropriate architecture. Once the binaries are built for both amd64 and arm64, we can proceed to package them accordingly without the need to re-build.

It also removes two jobs which were used for building packages for FreeBSD, which is no longer needed for v3.x.

It has other benefits as well:

  • Binary will have the same checksum in all packages for that architecture

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING document
  • I have run make install-tools and have attached any dependency changes to this pull request
  • If applicable, I have added tests that prove my fix is effective or that my feature works
  • If applicable, I have checked that any relevant tests pass after adding my changes
  • If applicable, I have updated any relevant documentation (README.md)
  • If applicable, I have tested my cross-platform changes on Ubuntu 22, Redhat 8, SUSE 15 and FreeBSD 13

@codecov
Copy link

codecov bot commented Nov 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.43%. Comparing base (f7e7012) to head (654f84b).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1396      +/-   ##
==========================================
+ Coverage   86.24%   86.43%   +0.18%     
==========================================
  Files         102      102              
  Lines       12603    12603              
==========================================
+ Hits        10870    10893      +23     
+ Misses       1257     1232      -25     
- Partials      476      478       +2     

see 6 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f7e7012...654f84b. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sean-breen sean-breen marked this pull request as ready for review November 19, 2025 12:28
@sean-breen sean-breen requested a review from a team as a code owner November 19, 2025 12:28
@sean-breen sean-breen merged commit 6bf4d3d into main Nov 21, 2025
39 checks passed
@sean-breen sean-breen deleted the reduce-packaging-time branch November 21, 2025 09:46
Akshay2191 pushed a commit that referenced this pull request Dec 18, 2025
* reduce packaging time by building only two binaries

* use pushd

* tidy up console output

* perform string substitution when creating files for release packaging

* remove docker build for FreeBSD packager

* perform string sub on architecture var

* update make target

* [skip ci] clean up log output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants